const axios = require('axios');
const config = require('../config');
const path = '/api/game_statistics/submit';
module.exports = async (data) => {
  try {
    const res = await axios.post(config.server + path, data);
    if (res.status === 200) {
      return res.data
    }
  } catch (e) {
    return Promise.reject(e)
  }
}